<script type="text/javascript">
  function foo()
  {
    var val = document.register.email.value;
    alert(val);
  }

  function bar()
  {
    var val = document.getElementById('unameId').value;
    alert(val);
  }

  function test(obj)
  {
    var val = obj.value;
    alert(val);
  }
</script>

<form name="register" action="" method="post">

  <input type="text" value="Vikas" name="email"
  onClick="foo()" placeholder="click event"/>

  <input type="text" value="Hello World" id="unameId" name="uname"
  onClick="bar()" placeholder="blur event"/>

  <input type="text" value="any js value" name="password"
  onClick="test(this)" placeholder="change event"/>

  <input type="submit" />
</form>

